package com.dong.service.impl;

import com.dong.dao.ManagerMapper;
import com.dong.entitys.Manager;
import com.dong.service.ManagerService;
import com.dong.tools.DBTools;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class ManagerServiceImpl implements ManagerService {
    @Override
    public List<Manager> selectAllVideoManager1() {
        SqlSession session = DBTools.getSession();
        ManagerMapper mapper = session.getMapper(ManagerMapper.class);
        List<Manager> managers = mapper.selectAllVideoManager1();
        session.commit();
        session.close();
        return managers;
    }
}
